<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<html>
<body>
<%@include file="/top.jsp" %>

	<%-- 默认显示所有书籍的分页信息 --%>
	<table border="0" width="560px">
		<tr  align="center">
			<c:forEach items="${page.records}" var="b">
				<td>
					<img src="${pageContext.request.contextPath}/images/${b.path}/${b.newImageName}"/>
					<br>
					书名：${b.name}<br>
					作者：${b.author}<br>
					售价：${b.money}<br>
					<a href="${pageContext.request.contextPath}/servlet/ControllerServlet?op=buyBook&bookId=${b.id}">放入购物车</a>
				</td>
			</c:forEach>
		</tr>
	</table>
		<%@include file="/commons/page.jsp" %>
  </body>
</html>
